package com.fqcar.fqdf.util;

import android.os.Environment;

import java.io.File;

/**
 * Created by lvsidong on 16/3/7.
 */
public class Constants {

    public final static int maxSize = 1024 * 50;//50 kb

    public static String BUNDLE_DATA = "bundle_data";
    public static String BUNDLE_DATA_EXT = "bundle_data_ext";
    public static String BUNDLE_DATA_EXT1 = "bundle_data_ext1";

    public static String BUNDLE_CARENTITY = "CarEntity";
    public static String BUNDLE_STUB_ENTITY = "StubEntity";
//    public static String BUNDLE_PARKINGENTITY = "ParkingEntity";
    public static String BUNDLE_CITYENTITY = "CityEntity";
//    public static String BUNDLE_PARKINGMAPLISTENTITY = "ParkingMapListEntity";

    public static final String POINT = ".";
    public static final String SPACE = " ";
    public static final String SLASH = "/";
    public static final String BLANK = "";

//    public static String userCityCode = "";



    /**
     * 通用显示状态
     */
    public static class NormalStatus{
        /**
         * 显示
         */
        public static final int SHOW = 1;
        /**
         * 不显示
         */
        public static final int UNSHOW = 0;

    }

    /**
     * 电子围栏
     */
    public static class AreaShape{
        /**
         * 圆形
         */
        public static final int CIRCLE = 0;
        /**
         * 其他形状
         */
        public static final int OTHER = 1;
    }

    public final static class Path {

        public static final String basePath = Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + "com.fqcar.fqdf" + File.separator;

    }
    /**
     * 驾照，行驶证图片大小
     *
     * @author lvsidong
     */
    public static class ImageSize {
        /**
         * 图片的宽
         */
        public static int WIDTH = 500;
        /**
         * 图片的高
         */
        public static int HEIGHT = 500;
    }


    public static class Tag {
        public static final String URL = "url";
        public static final String CITY_ENTITY = "cityEntity";
        public static final String SELECT_CONDITION = "selectCondition";
    }

    public static class Action {
        public static final String EXIT_ACTION = "com.fqcar.fqdf.exit_action";
        public static final String HOME_REFRESH_ACTION = "com.fqcar.fqdf.home_refresh_action";
        public static final String HOME_SELECT_CONDITION_ACTION = "com.fqcar.fqdf.home_select_condition_action";
    }


    public static class Type {

        /**
         * 行程订单状态
         */
        public static class TripOrder {
            /**
             * 已预订
             */
            public static final String AlreadyReserved = "01";
            /**
             * 进行中
             */
            public static final String Conducting = "02";

            /**
             * 违章处理中
             */
            public static final String ORDER_STATE_06 = "06";
            /**
             * 完成
             */
            public static final String ORDER_STATE_07 = "07";
        }

    }
    public static class CarState {
        /**
         * 待租
         */
        public static final int FOR_RENT = 1;
        /**
         * 手动下架
         */
        public static final int OFFLINE = 0;
        /**
         * 维修
         */
        public static final int REPAIR = 2;
        /**
         * 低电下架
         */
        public static final int LOW_POWER_OFFLINE = 4;
        /**
         * 低电下架（<10%）
         */
        public static final int LOW_POWER_PERCENT_OFFLINE = 7;

        /**
         * 待租(<10%)
         */
        public static final int FOR_RENT_PERCENT = 6;

        /**
         * 充电中
         */
        public static final int IS_CHARGING = 1;
        /**
         * 未充电
         */
        public static final int NO_CHARGING = 0;

    }

    /**
     * 充电桩的状态
     */
    public static class StubState{
        /**
         * 空闲
         */
        public static final int IDLE = 8;

        /**
         * 已插枪（但未充电）
         */
        public static final int CONNECTED = 9;

        /**
         * 充电已结束（但未拔枪，仅针对充电口）
         */
        public static final int STOPPED = 10;

        /**
         * stub充电中
         */
        public static final int IS_STUB_CHARGING = 2;
        /**
         * stub未充电
         */
        public static final int NO_STUB_CHARGING = 1;
    }

    public static class LoginForward {
        public static final String KEY = "forward";
        /**
         * 不进行跳转
         */
        public static final int NO_FORWARD = -1;

        /**
         * 个人中心
         */
        public static final int USER_CENTER = 0;

        /**
         * 确认订单
         */
        public static final int CONFIRM_ORDER = 1;

        /**
         * 推荐建点
         */
        public static final int RECOMMEND_SEARCH = 2;

        /**
         * 消息中心
         */
        public static final int MESSAGE_ACTIVITY = 3;
        /**
         * 首页
         */
        public static final int HOME_ACTIVITY = 4;
    }

}
